﻿<%@ Page Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="CourseInsert.aspx.cs" Inherits="ScoreManage.CourseInsert" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width:100%">
    <tr>
      <td style="font-family:黑体; font-size:26px; height:40px; text-align:center;">
        添加课程
      </td>
    </tr>
    <tr>
      <td>
        <table style="width:600px" align="center">
          <tr>
            <td style="width:85px">课程号：</td>
            <td style="width:208px"><asp:TextBox ID="txtCno" runat="server" Height="22px" Width="200px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCno" Display="Dynamic" ErrorMessage="请输入课程号！" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtCno" Display="Dynamic" ErrorMessage="该课程号已存在！" ForeColor="Red" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
              <asp:RegularExpressionValidator ControlToValidate="txtCno" ID="RegularExpressionValidator1" ValidationExpression="\S{10,10}" runat="server" ForeColor="Red" ErrorMessage="课程号必须为10位数字!"></asp:RegularExpressionValidator>
            </td>
          </tr>
          <tr>
            <td>课程名：</td>
            <td><asp:TextBox ID="txtCname" runat="server" Height="22px" Width="200px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCname" Display="Dynamic" ErrorMessage="请输入课程名！" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>学时：</td>
            <td><asp:TextBox ID="txtLecture" runat="server" Height="22px" Width="200px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtLecture" Display="Dynamic" ErrorMessage="请输入学时！" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>学期：</td>
            <td><asp:TextBox ID="txtSemester" runat="server" Height="22px" Width="200px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtSemester" Display="Dynamic" ErrorMessage="请输入学期！" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td>学分：</td>
            <td><asp:TextBox ID="txtCredit" runat="server" Height="22px" Width="200px"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCredit" Display="Dynamic" ErrorMessage="请输入学分！" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
          </tr>
        <tr style="height:35px">
            <td>&nbsp;</td>
            <td>
              <asp:Button ID="btnOK" runat="server" Text="提交" CausesValidation="true" onclick="btnOK_Click" />&nbsp;
              <asp:Button ID="btnReset" runat="server" Text="重置" CausesValidation="false" onclick="btnReset_Click" />
              <asp:Button ID="btnReturn" runat="server" Text="返回" CausesValidation="false" onclick="btnReturn_Click" />
            </td>
            <td>
            </td>
          </tr>
  </table>
          </td>
        </tr>
      </table>


</asp:Content>
